# Description: Guile şemasında yazılmış sabır oyunları topluluğu
# URL: https://wiki.gnome.org/Apps/Aisleriot
# Packager: yasarciv67@gmail.com
# Depends on: intltool itstool docbook-xsl yelp-tools appstream-glib gnome-common gtk3 librsvg libcanberra gconf dconf tdb desktop-file-utils guile-no-runtime

name=aisleriot
version=3.22.2
release=1
source=(https://ftp.gnome.org/pub/gnome/sources/$name/${version%.*}/$name-$version.tar.xz)

build() {
 cd $name-$version  
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
    --libexecdir=/usr/lib --disable-static \
    --with-kde-card-theme-path=/usr/share/carddecks \
    --with-pysol-card-theme-path=/usr/share/PySolFC
  # https://bugzilla.gnome.org/show_bug.cgi?id=655517
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
  make DESTDIR=$PKG install 

}
